package com.ant.storage.service.impl;

import com.ant.storage.pojo.HistoricalProcurement;
import com.ant.storage.mapper.HistoricalProcurementMapper;
import com.ant.storage.service.IHistoricalProcurementService;
import com.ant.storage.vo.HistoricalProcurementVo;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author melon
 * @since 2022-10-25
 */
@Service
public class HistoricalProcurementServiceImpl extends ServiceImpl<HistoricalProcurementMapper, HistoricalProcurement> implements IHistoricalProcurementService {

    @Override
    public  List<HistoricalProcurementVo> getHistoricalProcurementAll() {
        List<HistoricalProcurementVo> procurementAll = this.baseMapper.getHistoricalProcurementAll();
        return procurementAll;
    }

    @Override
    public List<HistoricalProcurementVo> getHistoricalProcurements(Integer id) {
        List<HistoricalProcurementVo> procurementAll = this.baseMapper.getHistoricalProcurementes(id);
        return procurementAll;
    }
}
